<!-- profile index -->
<?php $this->render('common/header'); ?>
	<a href="javascript:void(0);" id="profile-screen">Profile</a>&nbsp;|&nbsp;<a href="javascript:void(0);" id="settings-screen">Settings</a>
	<div id="profile-data">
        <table border="0">
            <tbody>
                <tr>
                    <td>User login:</td>
                    <td><?php echo $user->login; ?></td>
                </tr>
				<tr>
                    <td>Registration date:</td>
                    <td><?php echo $user->regDate; ?></td>
                </tr>
				<tr>
                    <td>Last login:</td>
                    <td><?php echo $user->lastLogin; ?></td>
                </tr>
				<tr>
                    <td>Access:</td>
                    <td><?php echo $user->access; ?></td>
                </tr>
            </tbody>
        </table>
    </div>
	<div id="ps" style="display: none;">
		<form action="index.php?cont=profile&amp;act=savesettings" method="post">
			<table>
				<tr>
					<td>
						System language:
					</td>
					<td>
						<select name="sysLanguage">
							<option value="-1" />Select language
							<?php foreach ($langs as $lang): ?>
								<option <?php echo ($currLanguage === $lang) ? 'selected="selected"' : '' ; ?> value="<?php echo $lang; ?>" /><?php echo $lang; ?>
							<?php endforeach; ?>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						Leksems per page:
					</td>
					<td>
						<input type="text" name="leksPerPage" value="<?php echo (empty($currLeksPerPage)) ? 100 : $currLeksPerPage; ?>" />
					</td>
				</tr>
				<tr>
					<td>
						Prefer dictionary:
					</td>
					<td>
						<select name="prefDict">
							<option value="-1" />Select dictionary
							<?php foreach ($dicts as $dict): ?>
								<option <?php echo ($currDict === $dict->id) ? 'selected="selected"' : '' ; ?> value="<?php echo $dict->id; ?>" /><?php echo $dict->name; ?>
							<?php  endforeach; ?>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<input type="submit" class="button" name="saveSettings" value="Save" />
					</td>
				</tr>
			</table>
		</form>
	</div>

<?php $this->render('common/footer'); ?>